package com.david.jetpack.lifecycle

import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.lifecycle.lifecycleScope

//参考链接：https://developer.android.google.cn/topic/libraries/architecture/lifecycle?hl=zh-cn
//https://blog.csdn.net/xx326664162/article/details/90749168
class LifecycleTestActivity: AppCompatActivity() {
    init {
        lifecycle.addObserver(MyObserver())
    }
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
    }
}